3.
Define a Class
Prev Next |
- Set class name. For example CustomChecklist;
-
Specify base class name for CustomChecklist – in our case it is
Sitecore.Web.UI.HtmlControls.Control.
There are two possible ways you can go:
-
- Derive from the Sitecore.Web.UI.HtmlControls.Control class and store all parts of the composite inside of your class.
-
Derive from the ‘main’ control (say, checklist) and add the other
parts.
In present article we follow the former approach.
-
Specify the constructor of your control. Here you can set the CssClass
and other properties. For example:
public CustomChecklist()
{
this.Class = "scContentControl";
base.Activation = true;
}
Prev Next